#include <iostream>
#include <sstream>
#include "logger.hpp"

using namespace rsv;

int main() {
    LOG(Logger::Level::INFO, "This is an info message");
    
    std::ostringstream oss;
    oss << &Logger::instance();
    std::cout << "Logger::instance().~Logger() before, Logger::instance(): " << oss.str() << std::endl;
    
    Logger::instance().~Logger();
    oss.str("");
    oss << &Logger::instance();
    std::cout << "Logger::instance().~Logger() after, Logger::instance(): " << oss.str() << std::endl;
    
    LOG(Logger::Level::WARNING, "This is a warning message");

    return 0;
}